<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:t="http://myfaces.apache.org/tomahawk">
<h:head>
	<title></title>
	<h:outputStylesheet library="css" name="style.css" />
	<h:outputScript library="lib" name="jquery-1.3.2-vsdoc2.js" />
	<h:outputScript library="js" name="messageForm.js" />
</h:head>

<h:body>
	<ui:include src="header.xhtml" />
	<c:if test="${userlogin !=null}">

		<ui:include src="sendMessageForm.xhtml" />
		<ui:include src="readMessageForm.xhtml" />

		<div id="backContent" style="border: 1px transparent solid">
			<div class="backgr">
				<ui:include src="bg.xhtml" />
			</div>
			<div id="content">

				<DIV style="height: 200px;">
					<div style="height: 250px; float: left;">
						<h:form>
							<h:graphicImage id="image" alt="Change avatar"
								url="#{personalPageBean.avatarPath}" style="height: 250px">
							</h:graphicImage>
						</h:form>

					</div>
					<h:panelGrid columns="2" rowClasses="firstRow, secondRow"
						width="300" class="user_info">
						<h:outputLabel value="Name" for="name" />
						<h:outputLabel id="name" value="#{loginBean.user.name}"
							required="true" />

						<h:outputLabel value="City" for="city" />
						<h:outputLabel id="city" value="#{loginBean.user.city}"
							required="true" />

						<h:outputLabel value="Sex" for="sex" />
						<h:outputLabel id="sex" value="#{loginBean.user.sex}"
							required="true" />

						<h:outputLabel value="About you" for="userInfo" />
						<h:outputLabel id="userInfo" value="#{loginBean.user.userInfo}"
							required="true" />
						<h:outputLabel value="Groups" />
						<rich:dataTable value="#{loginBean.user.groups}" var="group">
							<rich:column>
								<h:outputText value="#{group.nameGroup}" />
							</rich:column>
						</rich:dataTable>
					</h:panelGrid>
				</DIV>
			<ui:include src="tab.xhtml" />	
			</div>
		</div>

	</c:if>
	
</h:body>




</html>
